/**
 * 
 */
package bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.Transient;

/**
 * @author Daniel
 * 
 */
@Entity
@Table(name = "aluguelfilme")
public class AluguelFilme implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5694959614238817916L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	private long idAluguelFilme;

	@Column(nullable = false)
	private Pessoa pessoaAlugou;

	@Column(nullable = false)
	private Funcionario vendedor;

	@Column(nullable = false)
	@Temporal(javax.persistence.TemporalType.DATE)
	private Date dataAluguel;

	@Temporal(javax.persistence.TemporalType.DATE)
	private Date paraEntrega;

	@Transient
	private double valorAluguel;

	@Transient
	private int pontuacao;// Catalogo vale 50 e lancamento vale 100

}
